# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-preshed
_pkgname=preshed
pkgver=4.0.0
pkgrel=4
pkgdesc='Simple but high performance Cython hash table mapping pre-randomized keys to void* values.'
arch=('x86_64' 'aarch64')
url='https://pypi.org/project/preshed/'
license=('MIT')
depends=('python' 'python-cymem' 'python-murmurhash' 'cython')
makedepends=('python-setuptools' 'python-wheel' 'python-pip')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('51383b0417660cfdf843bbce968434e9be2401b6dd32f430c11dade8fd76288afc648098896da856cf75d72af91053a7d796fe9c5451e166deb8a7db65e1caf3')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

